//
//  QZBaseViewController.h
//  shenBian
//
//  Created by 上官惠阳 on 15/8/18.
//  Copyright (c) 2015年 上官惠阳. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIView+nice.h"
#import "QZRequest.h"

typedef enum{
    left,
    right
}QZDirection;

@interface QZBaseViewController : UIViewController<QZRequestProtocol>
@property (strong,nonatomic)UIWebView *webView;//方便有些界面是webView
@property (strong,nonatomic)UITextField *seletedField;//用来方便键盘监听的
@property (strong,nonatomic)UITextView *seleteTextView;
@property (strong,nonatomic)QZRequest *request;

-(void)addBtnOnNavWithTitle:(NSString *)title andImageName:(NSString *)name andTarget:(id)target andAction:(SEL)action andFrame:(CGRect)frame andDirection:(QZDirection)direction;

-(void)createWebViewWithUrlStr:(NSString *)urlStr;

//避免重复代码的封装
-(void)requestWithKeys:(NSArray *)keys andValues:(NSArray *)values andUrlKey:(NSString *)urlKey isCache:(BOOL)isCache;

//添加手势识别器，点击屏幕取消第一响应者
-(void)addTap;
@end
